/**
 * @Author YuanYuan
 * @Date 2022/4/23
 * @Time 17:37
 */
public class TestDemo {
    public static int MAX = 100;
    public static void main(String[] args) {
        for (int i = 1; i < MAX; i++) {
            int flag = 1;
            for (int j = 2; j <= Math.sqrt(i); j++) {
                if(0 == i%j) {
                    flag = 0;
                    break;
                }
            }
            if(1 == flag) {
                System.out.println(i);
            }
        }
    }
}
